package asteroids.model.programs.unaryexpression;

import asteroids.model.programs.Expression;
import asteroids.model.programs.Program;
import exception.IllegalOperandException;

public class Cosinus extends UnaryExpression<Double> {

	public Cosinus(Expression<?> operand) throws IllegalOperandException {
		super(operand);
	}

	@Override
	public Double getValue(Program program) {

		return Math.cos((Double)(getOperand().getValue(program)));
	}


}
